Fix Bug: Field name photo_path is not valid for model PhotosInfo

Brightcells 9 年之前
父节点
当前提交
b5be31c6cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      photo/serializers.py

+ 1 - 1
photo/serializers.py

@@ -7,4 +7,4 @@ from rest_framework import serializers
7 7
 class PhotosInfoSerializer(serializers.HyperlinkedModelSerializer):
8 8
     class Meta:
9 9
         model = PhotosInfo
10
-        fields = ('lensman_id', 'session_id', 'photo_id', 'photo_path', 'created_at')
10
+        fields = ('lensman_id', 'session_id', 'photo_id', 'p_photo_path', 'm_photo_path', 'l_photo_path', 'r_photo_path', 'created_at')